<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>乘法口诀表</title>
    <style>
        table {
            border-collapse: collapse;
            margin: 20px auto;
        }
        td {
            width: 60px;
            height: 40px;
            border: 1px solid #333;
            text-align: center;
            font-size: 16px;
        }
        .title {
            text-align: center;
            color: #333;
        }
    </style>
</head>
<body>
<h2 class="title">乘法口诀表</h2>
<table>
    <!-- 生成9行9列的乘法口诀表 -->
    <!-- 行循环 -->
    <script>
        for (let i = 1; i <= 9; i++) {
            document.write("<tr>");
            // 列循环，只显示到当前行数，避免重复
            for (let j = 1; j <= i; j++) {
                document.write(`<td>${j}×${i}=${j*i}</td>`);
            }
            document.write("</tr>");
        }
    </script>
</table>
</body>
</html>